package com.linkivr.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class T_factor {
	private int fac_id;					//因子编号
	private String fac_name;			//因子名称
	private	String fac_unit;			//因子单位
	private	double fac_alarm_lower1;	//预警下限
	private	double fac_alarm_upper1;	//预警上限
	private	double fac_alarm_lower2;	//报警下限
	private	double fac_alarm_upper2;	//报警上限
	private	double fac_range_lower;		//量程下限
	private	double fac_range_upper;		//量程上限
	private	double fac_dev_lower;		//设备下限
	private	double fac_dev_upper;		//设备上限	
	private String fac_memo;			//因子备注
	
	@Id
	@GeneratedValue
	public int getFac_id() {
		return fac_id;
	}
	public void setFac_id(int facId) {
		fac_id = facId;
	}
	public String getFac_name() {
		if (fac_name==null)
			return "";
		return fac_name;
	}
	public void setFac_name(String facName) {
		fac_name = facName;
	}
	public String getFac_unit() {
		if (fac_unit==null)
			return "";
		return fac_unit;
	}
	public void setFac_unit(String facUnit) {
		fac_unit = facUnit;
	}
	public double getFac_alarm_lower1() {
		return fac_alarm_lower1;
	}
	public void setFac_alarm_lower1(double facAlarmLower1) {
		fac_alarm_lower1 = facAlarmLower1;
	}
	public double getFac_alarm_upper1() {
		return fac_alarm_upper1;
	}
	public void setFac_alarm_upper1(double facAlarmUpper1) {
		fac_alarm_upper1 = facAlarmUpper1;
	}
	public double getFac_alarm_lower2() {
		return fac_alarm_lower2;
	}
	public void setFac_alarm_lower2(double facAlarmLower2) {
		fac_alarm_lower2 = facAlarmLower2;
	}
	public double getFac_alarm_upper2() {
		return fac_alarm_upper2;
	}
	public void setFac_alarm_upper2(double facAlarmUpper2) {
		fac_alarm_upper2 = facAlarmUpper2;
	}
	public double getFac_range_lower() {
		return fac_range_lower;
	}
	public void setFac_range_lower(double facRangeLower) {
		fac_range_lower = facRangeLower;
	}
	public double getFac_range_upper() {
		return fac_range_upper;
	}
	public void setFac_range_upper(double facRangeUpper) {
		fac_range_upper = facRangeUpper;
	}
	public String getFac_memo() {
		if (fac_memo==null)
			return "";
		return fac_memo;
	}
	public void setFac_memo(String facMemo) {
		fac_memo = facMemo;
	}
	public double getFac_dev_lower() {
		return fac_dev_lower;
	}
	public void setFac_dev_lower(double facDevLower) {
		fac_dev_lower = facDevLower;
	}
	public double getFac_dev_upper() {
		return fac_dev_upper;
	}
	public void setFac_dev_upper(double facDevUpper) {
		fac_dev_upper = facDevUpper;
	}
}
